<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象循环</title>
    <script src="./vue.js"></script>
</head>
<body>
<div id="app">
    <div v-for="(item,key,index) of userInfo">
        {{index}}-{{key}}-{{item}}
    </div>
</div>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            userInfo: {
                name: "YooLin1c",
                age: "23",
                gender: "male",
                salary: "secret"
            }
        }
    });
</script>
</body>
</html>